import QtQuick 2.4
import QtQuick.LocalStorage 2.0
import Qt.labs.settings 1.0
import QtQml.Models 2.1
import QtWebSockets 1.0
import QtQuick.Controls 1.4
import "../lib"

FNavigator {
    id: root
     property var libModel

    model: ObjectModel {
        FButton {
            text: "保存"
            backgroundColor: "#5b8199"
            width: 72 * __factor__
            height: root.tabHeight
            onClicked: {tab.item.create()}
        }
    }

    Tab {
        id: tab
        title: "添加商品"
        GoodsCreateContent{
            libModel: root.libModel
        }
    }
}
